from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(1127, 613)
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setGeometry(QtCore.QRect(0, 10, 1031, 111))
        self.label2 = QtWidgets.QLabel(Dialog)
        self.label2.setGeometry(QtCore.QRect(448, 540, 310, 61))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(50)
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.label2.setObjectName("label2")
        self.comboBox = QtWidgets.QComboBox(Dialog)
        self.comboBox.setGeometry(QtCore.QRect(10, 140, 201, 51))
        self.comboBox.setObjectName("comboBox")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.pushButton = QtWidgets.QPushButton(Dialog)
        self.pushButton.setGeometry(QtCore.QRect(10, 540, 131, 61))
        self.pushButton.setObjectName("pushButton")
        self.pushButton_2 = QtWidgets.QPushButton(Dialog)
        self.pushButton_2.setGeometry(QtCore.QRect(679, 140, 201, 51))
        self.pushButton_2.setObjectName("pushButton_2")
        self.pushButton_3 = QtWidgets.QPushButton(Dialog)
        self.pushButton_3.setGeometry(QtCore.QRect(900, 140, 201, 51))
        self.pushButton_3.setObjectName("pushButton_3")
        self.pushButton_4 = QtWidgets.QPushButton(Dialog)
        self.pushButton_4.setGeometry(QtCore.QRect(448, 140, 201, 51))
        self.pushButton_4.setObjectName("pushButton_4")
        self.tabWidget = QtWidgets.QTableWidget(Dialog)
        self.tabWidget.setGeometry(QtCore.QRect(10, 210, 1115, 321))
        self.tabWidget.setObjectName("tabWidget")
        self.tabWidget.verticalHeader().setVisible(False)
        self.tabWidget.resizeColumnsToContents()
        self.tabWidget.resizeRowsToContents()
        self.tabWidget.setShowGrid(False)

        self.retranslateUi(Dialog)
        self.pushButton.clicked.connect(self.tabWidget.clear)
        self.pushButton.clicked.connect(Dialog.query)
        self.pushButton_2.clicked.connect(Dialog.alter)
        self.pushButton_3.clicked.connect(Dialog.delete)
        self.pushButton_4.clicked.connect(Dialog.output)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "query"))
        self.label.setText(_translate("Dialog", "<html><head/><body><p align=\"center\">欢迎您，管理员</p></body></html>"))
        self.comboBox.setItemText(0, _translate("Dialog", "员工信息"))
        self.comboBox.setItemText(1, _translate("Dialog", "商品信息"))
        self.comboBox.setItemText(2, _translate("Dialog", "供应商信息"))
        self.comboBox.setItemText(3, _translate("Dialog", "采购清单"))
        self.comboBox.setItemText(4, _translate("Dialog", "采购明细"))
        self.pushButton.setText(_translate("Dialog", "查询"))
        self.pushButton_2.setText(_translate("Dialog", "修改选定项"))
        self.pushButton_3.setText(_translate("Dialog", "删除选定项"))
        self.pushButton_4.setText(_translate("Dialog", "导出当前报表"))